home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / comm / bbs / F123_DEV.lha / INSTALL < prev    next >
Text File  |  1996-06-23  |  7KB  |  180 lines

  1. ; $VER: FAME_DEV_INSTALL 0.1 (22.06.96) - written by Sascha "SieGeL" Pfalz
  2. ; Installer and Installer project icon
  3. ; (c) Copyright 1995-96 Escom AG.  All Rights Reserved.
  4. ; Reproduced and distributed under license from Escom AG.
  5. ;
  6. ; V1.0 (22.06.96) - First Version, yet untested and unfinished
  7.  
  8. ;================
  9. ;= GERMAN TEXTS =
  10. ;================
  11.  
  12. (IF (= @language "deutsch")
  13.     (
  14.     (set default_lang 2)
  15.     (set #ERROR                                 "\n%s abgebrochen mit Fehlernummer %ld !")
  16.     (set #bad-kick        (cat            "\nSie benötigen mindestens Kickstart V2.04 oder\n\n"
  17.                                                             "höher, um diese Installation durchzuführen !\n\n"
  18.                                                             "-> Bitte updaten Sie Ihr System <-"))
  19.     (set #introduction (cat            "\nDieses Skript installiert die FAME Developer\n"
  20.                               "Archive auf Ihrem Computer. Diese Archive werden\n"
  21.                                                             "benötigt, um eigene FAME Programme zu schreiben,\n"
  22.                                                             "für den normalen Betrieb der FAME ist diese Disk\n"
  23.                                                             "nicht notwendig !"))
  24.     (set #selectdest    (cat            "Bitte Verzeichnis wählen, in welches die\n"
  25.                                                             "Developerdateien entpackt werden sollen:"))
  26.     (set #selectdesthelp    (cat    "Sie werden aufgefordert anzugeben, in welchem Ver-\n"
  27.                                                             "zeichnis Sie die Developer-Dateien installiert\n"
  28.                               "haben möchten. \n\n" @askdir-help))
  29.     (set #choosedev (cat                "Bitte wählen Sie die Teile der Developer-Dateien\n"
  30.                                                             "aus, die Sie installiert haben möchten. Wählen Sie\n"
  31.                                                             "'Hilfe...' für weitere Informationen."))
  32.     (set #choosedevhelp (cat        "Sie können nun entscheiden, welche Dateien des\n"
  33.                                                             "FAME Developerkits installiert werden sollen.\n"
  34.                                                             "Der Installer entpackt zuerst die FAME.library\n"
  35.                               "Autodocs sowie zwei Beispielprogramme in C.\n"
  36.                                                             "Zusätzlich können Sie entscheiden, für welche\n"
  37.                                                             "Sprachen Sie die Developerfiles installiert\n"
  38.                                                             "haben möchten:\n\n"
  39.                                                             "SAS/C and StormC - Includes und Beispiele für C\n"
  40.                                                             "Amiga-E          - Module und Beispiele für E\n"
  41.                                                             "DevPac/ASM-One   - Assembler includes & Beispiele\n\n\n" @askoptions-help))
  42.     (set #extracting    (cat            "\n\nInstaller entpackt nun die von Ihnen angewählten\n"
  43.                                                             "Dateien, bitte einen Moment Geduld..."))
  44.     (set #main_dev                             "\nInstalliere Autodocs und Beispiele...")
  45.     (set #dev_c                 "\nInstalliere C Includes und Beispiele...")
  46.     (set #dev_e                 "\nInstalliere E Includes und Beispiele...")
  47.     (set #dev_asm                                "\nInstalliere Assembler Includes und Beispiele...")
  48.     ))
  49.  
  50. ;=================
  51. ;= ENGLISH TEXTS =
  52. ;=================
  53.  
  54. (IF (= @language "english")
  55.     (
  56.     (set default_lang 4)
  57.     (set #ERROR                                 "\n%s aborted with errornumber %ld !")
  58.     (set #bad-kick        (cat            "\n\nYou must be using Kickstart V2.04 or higher\n\n"
  59.                                                             "to use this Installation !\n\n"
  60.                                                             "-> Please update your machine ! <-"))
  61.     (set #introduction (cat            "\nThis script will install the FAME development\n"
  62.                                                             "archives to your System. You need this files if\n"
  63.                                                             "you plan to write your own FAME doors, but the\n"
  64.                                                             "normal BBS usage doesn't need this disk to run!\n"))
  65.     (set #selectdest    (cat            "Please choose the directory where to install\n"
  66.                                                             "the Development files:" ))
  67.     (set #selectdesthelp (cat        "You where prompted to enter the destination path\n"
  68.                                                             "for the development files.\n\n" @askdir-help))
  69.     (set #choosedev    (cat                "Please choose which parts of the Developerfiles\n"
  70.                                                             "you wish to install. Select 'Help...' for more\n"
  71.                                                             "details about these options."))
  72.     (set #choosedevhelp (cat        "You have to choose now which parts of the FAME\n"
  73.                                                             "development files you wish to install. The\n"
  74.                               "installer will extract the FAME.library autodocs\n"
  75.                                                             "and two example programs. Additional you could\n"
  76.                                                             "choose for which language you wish to install the\n"
  77.                                                             "required tools to program FAME doors. There are:\n\n"
  78.                                                             "SAS/C and StormC - Includes and examples for C\n"
  79.                                                             "Amiga-E          - Modules and examples for E\n"
  80.                                                             "DevPac/ASM-One   - Assembler includes & examples\n\n\n\n" @askoptions-help))
  81.   (set #extracting    (cat            "\n\nPlease be patient, Installer extract\n"
  82.                                                             "now selected archives..."))
  83.     (set #main_dev                             "\nNow installing Autodocs and Examples...")
  84.     (set #dev_c                 "\nNow installing C Includes and Examples...")
  85.     (set #dev_e                 "\nNow installing E Includes and Examples...")
  86.     (set #dev_asm                                "\nNow installing Assembler Includes and Examples...")
  87.     ))
  88.  
  89. ;=======================================================
  90. ;= PROCEDURE TO CHECK RETURNVALUE OF EXTERNAL PROGRAMS =
  91. ;=======================================================
  92.  
  93. (procedure p_checkit #checkvalue #name
  94.     (
  95.     (if (<> #checkvalue 0)
  96.         (
  97.         (set errline (#ERROR #name @ioerr))
  98.         (abort errline)))
  99.     )
  100. )
  101.  
  102. ;=========================
  103. ;= START OF INSTALLATION =
  104. ;=========================
  105.  
  106. (if (< (/ (getversion) 65536) 37) ( (ABORT #bad-kick)))
  107.  
  108. (complete 10)
  109.  
  110. (welcome)                                                                    ; Say hello to the user ;O
  111.  
  112. (complete 20)
  113.  
  114. (message #introduction)                                        ; Display Informationtext
  115.  
  116. (complete 30)
  117.  
  118. (set destdir                                                            ; Ask for installation path
  119.     (askdir    (prompt #selectdest)
  120.                     (help        #selectdesthelp)
  121.                     (default    "FAME:")))
  122.  
  123. (set @default-dest destdir)                                ; Set installers path (!)
  124.  
  125. (complete 40)
  126.  
  127. (set myopts                               ; Ask what to install
  128.     (askoptions (prompt     #choosedev)
  129.                             (help            #choosedevhelp)
  130.                             (choices  "SAS/C and StormC"
  131.                                                 "Amiga-E"
  132.                                                 "DevPac/ASM-One")))
  133.  
  134. (complete 50)
  135.  
  136. (working #extracting)                                            ; Show that Installer is busy now
  137.  
  138. (set #cmdline ("FAME_Developer:c/lha -q x FAME_Developer:FAME_DEV.LHA %s" @default-dest))
  139. (set #myerr
  140.     (run    #cmdline                                                    ; Install first the main archive
  141.         (prompt    #main_dev)
  142.         (help        "")))
  143. (p_checkit #myerr "LHA")
  144.  
  145. (complete 60)
  146.  
  147. (if (IN myopts 0)
  148.     (
  149.     (set #cmdline ("FAME_Developer:c/lha -q x FAME_Developer:FAME_C.LHA %s" @default-dest))
  150.     (set #myerr
  151.     (run    #cmdline                                                    ; Install C includes
  152.         (prompt    #dev_c)
  153.         (help        "")))))
  154. (p_checkit #myerr "LHA")
  155.  
  156. (complete 70)
  157.  
  158. (if (IN myopts 1)
  159.     (
  160.     (set #cmdline ("FAME_Developer:c/lha -q x FAME_Developer:FAME_E.LHA %s" @default-dest))
  161.     (set #myerr
  162.     (run    #cmdline                                                    ; Install E includes
  163.         (prompt    #dev_e)
  164.         (help        "")))))
  165. (p_checkit #myerr "LHA")
  166.  
  167. (complete 80)
  168.  
  169. (if (IN myopts 2)
  170.     (
  171.     (set #cmdline ("FAME_Developer:c/lha -q x FAME_Developer:FAME_ASM.LHA %s" @default-dest))
  172.     (set #myerr
  173.     (run    #cmdline                                                    ; Install ASM includes
  174.         (prompt    #dev_asm)
  175.         (help        "")))))
  176. (p_checkit #myerr "LHA")
  177.  
  178. (complete 100)                                                        ; That's it, say goodbye and leave...
  179. (exit)
  180.